package com.study.designPattern.observer.example;

/**
 * 创建人： HBZ，时间： 2017/8/22 11:35.
 * 说明：配送员
 */
public class Dilliveryman extends JobStation{
    private String dillivierymanState;
    private Customer customer;
//    public Dilliveryman(Customer customer){
//        this.customer=customer;
//    }
    @Override
    public void Update(Customer customer) {
        if (customer.getCustomerState() == "已付款")
        {
            System.out.println("我是配送员，我来发货。");
            dillivierymanState = "已发货";
        }
    }
}
